/*    */ package org.poebot.hal;
/*    */ 
/*    */ import org.apache.log4j.Logger;
/*    */ 
/*    */ public class BotPrompter extends Thread
/*    */ {
/*    */   private long delay;
/*    */   private Chatbot bot;
/* 30 */   private static Logger logger = Logger.getLogger(BotPrompter.class);
/*    */ 
/*    */   public BotPrompter(Chatbot bot, long delay)
/*    */   {
/* 10 */     this.delay = delay;
/* 11 */     this.bot = bot;
/*    */   }
/*    */ 
/*    */   public void run()
/*    */   {
/*    */     try
/*    */     {
/* 18 */       sleep(this.delay);
/* 19 */       this.bot.speakToChannels();
/* 20 */       logger.debug("prompted the bot to speak.");
/*    */     } catch (InterruptedException e) {
/* 22 */       logger.debug("prompter was interrupted before it finished.");
/*    */     }
/*    */   }
/*    */ }

/* Location:           C:\workspace\dognuts\dognuts\dognuts.jar
 * Qualified Name:     org.dognuts.hal.BotPrompter
 * JD-Core Version:    0.6.0
 */